import { requestInterceptors } from "./requestInterceptors";
import { responseInterceptors } from "./responseInterceptors";
import { baseUrl } from "@/envConfig";
/**
 * 初始化请求配置
 */
export default function initRequest() {
  uni.$u.http.setConfig((config) => {
    /* 根域名 */
    config.baseURL = baseUrl;

    return config;
  });
  //请求拦截器
  requestInterceptors();
  //响应拦截器
  responseInterceptors();
}
